events {
  worker_connections  1024;  ## Default: 1024
}

http{
  server {
    listen 443 ssl;

    server_name localhost;
    # certs and keys are installed during the build process of the nginx container.
    ssl_certificate /etc/ssl/server.crt;
    ssl_certificate_key /etc/ssl/server.key;

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers on;
    ssl_ciphers EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH;

    root /usr/share/nginx/html;
    index index.php index.html index.htm;

    error_page 404 /404.html;
    error_page 500 502 503 504 /50x.html;
  }

  server {
    listen 80 default_server;
    ##listen [::]:7070 default_server ipv6only=off;

    root /usr/share/nginx/html;
    index index.php index.html index.htm;

    server_name localhost;
  }

}
